package com.zyf.springboot.controller;

import com.zyf.springboot.mapper.UserMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

@Controller
public class UrlController {
/*
templates前台映射
 */
    @GetMapping("/index")
    public String index(){
        return "index";
    }
    @GetMapping("/login")
    public String login(){
        return "login";
    }
   @GetMapping("/table")
    public String table(){
        return "table";
   }
    @GetMapping("/error1")
    public String error1(){
        return "error1";
    }
    @GetMapping("/book")
    public String book(){
        return "book";
    }
}
